//
//  DomParser.h
//  CCB
//
//  Created by simon wang on 6/1/10.
//  Copyright 2010 simonwang142232@gmail.com. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GDataXMLNode.h"

/**
 * 对dom树做解析的类
 */
@interface DomParser : NSObject {

}

// based on element name
+(int) findElementsWithName: (NSString *) elementName 
            inParentElement: (GDataXMLElement *) parentElement
                beRecursive: (BOOL) recursive
            withResultArray: (NSMutableArray *) resultArray;


// based on attribute key-value
+(int) findElementsWithAttributeKey: (NSString *) attributeKey 
                  andAttributeValue: (NSString *) attributeValue
                    inParentElement: (GDataXMLElement *) parentElement
                        beRecursive: (BOOL) recursive
                    withResultArray: (NSMutableArray *) resultArray;


@end
